package com.liangzhong.model.friend.vo
{
	/**
	 *天梯荣誉item vo 
	 * @author lake
	 * 
	 */	
	public class FriendHonourItemVo
	{
		/**
		 * 第几期天梯
		 */		
		public var period  :int;
		/**
		 * 天梯等级
		 */		
		public var level 	:int;
		/**
		 * 天梯名次
		 */		
		public var sort 	:int;
		
		
		public function FriendHonourItemVo()
		{
		}
		/**
		 *解析数据 
		 * @param data
		 */	
		public function parse(data :Object):void
		{
			period 				= data.period;
			level 				= data.level;
			sort 				= data.sort;
		}
		
		public function get tips():String
		{
			var info:String = "第"+ period+"届"+level+"级天梯赛" + levelStr(sort);
			return info;
		}
		private function levelStr($value:int):String
		{
			switch($value)
			{
				case 1:
					return "冠军";
				case 2:
					return "季军";
				case 3:
					return "亚军";
				case 4:
					return "殿军";
			}
			return "";
		}
	}
}